package ua.kratik.seabattle.game.enums;

public enum ShootResult {
	MISSED 			(0, "Missed"),
	HIT				(1, "Hit"),
	DESTROYED		(2, "Destroyed"),
	SHOOT_PROHIBITED(3, "Shoot_prohibited");
	
	private final int id;
	private final String value;
	
	/**
	 * @param id - is used as unique identifier of this enum element in data storage 
	 * @param value - is used to describe this element in data storage. 
	 * Is not case sensitive therefore hardcoded <code>value = "missed"</code>  
	 * and <code>"MISsed"</code>  in data storage are equal  
	 */
	private ShootResult(int id, String value){
		this.id = id;
		this.value = value;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @return the descriptive value
	 */
	public String getValue() {
		return value;
	}
	

}
